﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Commandparser.Types
{
    class @string : IPropertyObject
    {

        public override IPropertyObject Parse(string content)
        {
            return new @string() { Value = Middle(content, "'", "'") };
        }

        public override bool IsType(string content)
        {
            if(content.StartsWith("'") && content.EndsWith("'"))
            {
                return true;
            }
           
            return base.IsType(content);
        }

    }
}
